package com.echo.echovividlive.common;

public class UserThread {
    private static final ThreadLocal<Integer> user = new ThreadLocal<>();

    public static void setUserId(int userId) {
        user.set(userId);
    }

    public static Integer getUserId() {
        return user.get();
    }

    public static void removeUserId() {
        user.remove();
    }
}
